<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<div id="contentmid">
<s:if test="#session.loggedUser != null && #session.loggedUser.amministratore == true">
    <div class="midheading">
        <h2>Gestione Ordini - Ordini evasi</h2>
    </div>
    <div class="midtxt">    
    <s:if test="ordiniEvasi.size() == 0">
    Non ci sono ordini evasi<br>
    </s:if>
    <s:else>
     <table>
    <s:iterator value="ordiniEvasi">
        
                <tr>
                <td><s:date name="data" format="dd/MM/yyyy"/></td>
                <td><s:property value="nomeDestinatario"/></td>
                <td><s:property value="cognomeDestinatario"/></td>
                <td><s:property value="indirizzoSpedizione"/></td>
                
                <td>
                       <s:form action="dettaglio_ordine">
                           <s:hidden name="idOrdine" value="%{idOrdine}"/>
                           <s:submit type="image" src="img/catalogo/get-info-b.png"/>
                       </s:form>
                    </td>
                
                 </tr>
                 
    </s:iterator>
    </table>
    </s:else>
    </div>
    <form>
        <input type="button" value="Indietro" onClick="javascript:history.back()"/>
    </form>    
    </s:if>
    <s:else>
        <h3><s:text name="message.notlogged"/></h3>
    </s:else>
</div>	